package com.CST.service.cb;

import com.CST.common.api.Response;
import com.CST.dto.cb.DateDTO;
import com.CST.entity.cb.JxCost;
import com.CST.entity.cb.JxObjectiveAssessment;
import com.CST.vo.cb.JxObjectiveAssessmentVO;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.concurrent.ExecutionException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author qtx
 * @since 2023-05-24
 */
public interface JxObjectiveAssessmentService extends IService<JxObjectiveAssessment> {



    Response modifyJxObjectiveAssessment(JxObjectiveAssessment entity);
    List<JxObjectiveAssessmentVO> queryByYear(DateDTO dateDTO) throws ExecutionException, InterruptedException;

    /**
     * 导入数据
     * @param file 文件
     */
    void importExcelJxObjectiveAssessment(MultipartFile file,Integer year);

    /**
     * 导出数据
     * @param response response
     */
    void exportExcelJxObjectiveAssessment(HttpServletResponse response,DateDTO dateDTO) throws ExecutionException, InterruptedException;

    /**
     * 导出模板
     * @param response response
     */
    void exportExcelJxObjectiveAssessmentDemo(HttpServletResponse response);

}
